<?php

Route::resource('api/user','api/User');
Route::rule('api/login/user','api/User/login','POST')->only(['psw','username']);
Route::rule('api/exit/user','api/User/loginExit');
Route::resource('api/label','api/Label');
Route::resource('api/article','api/Article');
Route::rule('api/updateField/article/:id','api/Article/updateField','PUT')->only(['option']);
Route::resource('api/friendLink','api/FriendLink');
Route::rule('api/config/save','api/Config/save');
Route::resource('api/notice','api/Notice');
Route::resource('api/timeLine','api/TimeLine');

Route::rule('api/uploadImg','api/Upload/uploadImg');